<admintpl file="header" />
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
<script src="__ROOT__/statics/js/common.js"></script>
<script src="__ROOT__/statics/js/angular/angular.min.js"></script>
<script src="__ROOT__/statics/js/angular/myApp.js"></script>
	<ul class="nav nav-tabs">
		<li><a href="{:U('index')}">商品类型列表</a></li>
		<li><a href="{:U('addType')}" >新建商品类型</a></li>
		<li class="active"><a href="#" >编辑商品类型</a></li>
	</ul>
	<div ng-app="myApp" ng-controller="myCtrl" ng-init="post.cat_name='{$typelist.cat_name}';post.attr_group='{$typelist.attr_group}';post.cat_id={$typelist.cat_id}">
		<p>商品类型名称：<input type="text"  ng-model="post.cat_name"></p>
		<p>　　属性分组：<textarea  ng-model="post.attr_group"></textarea></p>
		<p><button class="btn btn-primary" ng-click="clickEdit(post)">修改</button>　{{editType}}<button class="btn btn-primary" ng-click="post.cat_name={$typelist.cat_name};post.attr_group={$typelist.attr_group}">重置</button>
	</div>
</body>
</html>
